package net.wanho.mapper;

import com.sun.rowset.internal.Row;
import net.wanho.entity.Emp;
import org.wanho.util.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Author：汤小洋
 * Date：2024-07-30 9:56
 * Description：<描述>
 */
public class EmpMapper implements RowMapper<Emp> {
    @Override
    public Emp mapRow(ResultSet rs) throws SQLException {
        return new Emp(
                rs.getInt("id"),
                rs.getString("name"),
                rs.getString("phone"),
                rs.getString("address"),
                rs.getInt("status"));
    }
}
